<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<h:panelGrid id="pictureInfoOutputPanel"
		rendered="#{pictureModel.current != null}" columns="2">
		<h:panelGrid columns="2">
			<h:outputText value="id" />
			<h:outputText value="#{pictureModel.current.id}" />
			<h:outputText value="Title" />
			<h:outputText value="#{pictureModel.current.title}" />
			<h:outputText value="Path" />
			<h:outputText value="#{pictureModel.current.path}" />
			<h:outputText value="File name" />
			<h:outputText value="#{pictureModel.current.fileName}" />
			<h:outputText value="Category" />
			<h:outputText value="#{pictureModel.current.type}" />
			<h:outputText value="Upload date" />
			<p:calendar value="#{pictureModel.current.uploadedDate}"
				disabled="true" />
			<h:outputText value="Taken Date" />
			<p:calendar value="#{pictureModel.current.takenDate}" disabled="true" />
			<h:outputText value="Description" />
			<h:inputTextarea value="#{pictureModel.current.description}"
				disabled="true" />
			<h:outputText value="#{pictureModel.current.recommendIndex}" />
		</h:panelGrid>
		<ui:remove>
			<h:graphicImage library="images"
				value="../#{pictureModel.current.fullFileName}"
				style="width:320px;height:240px"></h:graphicImage>
		</ui:remove>
	</h:panelGrid>
</ui:composition>
</html>